package com.pro_one.service;

import com.pro_one.entity.PageResult;
import com.pro_one.entity.QueryPageBean;
import com.pro_one.entity.QueryPageBeanQueryString;
import com.pro_one.entity.Result;
import com.pro_one.pojo.Order;
import com.pro_one.pojo.OrderFitness;
import com.pro_one.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface OrderService {

    Result order(Map map,Integer orderaddressId) throws Exception;

    Map findById(Integer id);


    List<Integer> findOrderCount(List<String> orderDay);

    List<Integer> orderGetCount(List<String> orderDay);

    PageResult PageQuery(QueryPageBeanQueryString queryPageBean);

    Result add(Map<String, Object> map,List<Integer> lsetmealIds) throws Exception;

    Map findByOrderId(Integer id);

    List<Integer> findSetmealIdsByOrderId(Integer id);

    void edit(Map map, List<Integer> setmealIds);

    void changeOrderStatus(Integer id);

    void forbidden(Integer id);

    List<Setmeal> getOrderAndSetmeal(String telephone);

    OrderFitness findByIdOrder(Integer id);
}
